<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/14
 * Time: 15:38
 */
namespace Pay\Model;
use Think\Model;

class PayModel extends Model{
    protected $tableName 	= 'pay';
    protected $pk        	= 'id';
    protected $tablePrefix;

    private $map = array();
    function _initialize(){
        $this->tablePrefix	= C('DB_PREFIX');
    }

    function bankDelete($id){
        if(empty($id)){
            return showData(new \stdClass(),'缺少参数',1);
        }
        $result=M('card')->delete($id);
        if($result){
            return showData(new \stdClass(),'删除成功');
        }else{
            return showData(new \stdClass(),'删除失败',2);
        }
    }
}